<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var innerHtmlDiv = document.getElementById('innerHtmlDiv');
				innerHtmlDiv.innerHTML = '<span style="color: red;">innerHTML</span>';
				
				var innerTextDiv = document.getElementById('innerTextDiv');
				innerTextDiv.innerText = '<span style="color: red;">innerText</span>';
			}
			
		</script>
	</head>
	<body>
		 <div id="innerHtmlDiv"></div>
		 <div id="innerTextDiv"></div>
		 
	</body>
</html>
